import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 1. 若年龄小于0则输出0；
 * 2. 若年龄大于200则输出200；
 * 3. 若年龄介于[0,200]之间则直接输出。
 * User: 15085202591
 * Date: 2022-12-17
 * Time: 20:14
 */
class Person{
    private int age;

    public void setAge(int age) {
        if (age < 0){
            this.age = 0;
        }else if(age > 200){
            this.age = 200;
        }else {
            this.age = age;
        }
    }

    public int getAge() {
        return age;
    }
}
public class Demo1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Person per = new Person();
        while (sc.hasNextInt()){
            int age = sc.nextInt();
            per.setAge(age);
            System.out.println(per.getAge());
        }
    }
}
